﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Xugege.AbpExtension.Core.Extension.File
{
    public interface IUploadFileManager
    {
        /// <summary>
        /// 根据id获取上传记录
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<IList<UploadFileRecord>> GetList(params Guid[] ids);
        Task<UploadFileRecord> GetAsync(long id);

        Task Remove(long id);
        /// <summary>
        /// 添加一条记录
        /// </summary>
        /// <param name="file"></param>
        /// <returns></returns>
        Task<long> Add(UploadFileRecord file);
    }
}
